﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XRM.Security.DataAccess.Models
{
    [Table("WorkKindParam")]
    public class WorkKindParam
    {
        public WorkKindParam()
        {
        }

        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int WorkKindParamId { get; set; }
        
        [Required]
        public int CustomId { get; set; }

        [Required]
        [MaxLength(100)]
        public string WorkKindParamName { get; set; }

        public virtual ICollection<WorkKindSpec> WorkKindSpec { get; set; }
    } 
}